package com.example.demo810.event;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * @author lzh
 * @date 2020/8/12 - 9:08
 */
@Slf4j
@Getter
@Setter
public class AsyncNoticeEvent extends ApplicationEvent {
    String message;

    public AsyncNoticeEvent( String message) {
        super(message);
        this.message = message;
        log.info("add event success! message: {}", message);
    }
}
